package cn.b.sky.mes.andon.model;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

/**
 *   MAD_暗灯属性定义
 * [STRATO MyBatis Generator]
 * Table: MAD_ANDONATTRIBUTE
 */
public class AndonAttribute extends ImeCommon {

  /**
   *   属性编号
   * Column: MAD_ANDONATTRIBUTE.ATTRIBUTECODE
   */
  private String attributeCode;

  /**
   *   描述
   * Column: MAD_ANDONATTRIBUTE.ATTRIBUTETEXT
   */
  private String attributeText;

  /**
   *   属性值类型
   * Column: MAD_ANDONATTRIBUTE.VALUETYPEECODE
   */
  private String valueTypeEcode;

  /**
   *   锁定标志
   * Column: MAD_ANDONATTRIBUTE.LOCKFLAG
   */
  private int lockFlag;
  
  private String memo;//说明
  
  private int requiredFlag;//必填标志
  
  private List<String> attributeValue=new ArrayList<String>();


  private List<AndonAttributeEnum> attributeEnumList=new LinkedList<AndonAttributeEnum>();

  public String getAttributeCode() {
    return StringUtils.upperCase(attributeCode);
  }

  public void setAttributeCode(String attributeCode) {
    this.attributeCode = StringUtils.upperCase(attributeCode);
  }

  public String getAttributeText() {
    return attributeText;
  }

  public void setAttributeText(String attributeText) {
    this.attributeText = attributeText;
  }

  public String getValueTypeEcode() {
    return valueTypeEcode;
  }

  public void setValueTypeEcode(String valueTypeEcode) {
    this.valueTypeEcode = valueTypeEcode;
  }

  public int getLockFlag() {
    return lockFlag;
  }

  public void setLockFlag(int lockFlag) {
    this.lockFlag = lockFlag;
  }

  public List<AndonAttributeEnum> getAttributeEnumList() {
    return attributeEnumList;
  }

  public void setAttributeEnumList(List<AndonAttributeEnum> attributeEnumList) {
    this.attributeEnumList = attributeEnumList;
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo;
  }

  public int getRequiredFlag() {
    return requiredFlag;
  }

  public void setRequiredFlag(int requiredFlag) {
    this.requiredFlag = requiredFlag;
  }

  public void addAttributeEnum(AndonAttributeEnum attributeEnum){
    if(null == this.attributeEnumList){
      this.attributeEnumList = new LinkedList<AndonAttributeEnum>();
    }
    this.attributeEnumList.add(attributeEnum);
  }

  public List<String> getAttributeValue() {
    return attributeValue;
  }

  public void setAttributeValue(List<String> attributeValue) {
    this.attributeValue = attributeValue;
  }

  
  
}